/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package avenue;

import javax.swing.JOptionPane;

/**
 *
 * @author me
 */
public class messageBox {
    public static void infoBox(String infoMessage)
    {
        JOptionPane.showMessageDialog(null, infoMessage,"Προσοχή",JOptionPane.ERROR_MESSAGE);
    }
    
     public static int YesNo(String infoMessage)
    {
      int  answer = JOptionPane.showConfirmDialog(null, infoMessage,"Επιβεβαίωση",JOptionPane.YES_NO_OPTION);
        return answer;
    }
}
